package com.yc.mysql.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;

@Data
// 生成全部字段为参数构造函数
@AllArgsConstructor
// 无参数构造函数
@NoArgsConstructor
// 自动生成 toString, hashCode, equals
public class Book {

    // 字段 === 属性名   完全相同
    private Integer id;
    private String bookname;
    private String bookpress;
    private Date pressdate;
    private String bookauthor;
    private Integer bookcount;
    private String bookimage;
    private String categroy;

}
